<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE HTML>
<html>
<head>
  <title>会员资金提现申请</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <link href="/resources/css/dpl-min.css" rel="stylesheet" type="text/css" />
  <link href="/resources/css/bui-min.css" rel="stylesheet" type="text/css" />
  <link href="/resources/css/page-min.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="container">

    <form id="searchForm" class="form-horizontal">
        <div class="row">
            <div class="control-group span8">
                <label class="control-label">会员编号：</label>
                <div class="controls">
                    <input type="text" class="control-text" name="id">
                </div>
            </div>
            <div class="control-group span8">
                <label class="control-label">会员名称：</label>
                <div class="controls">
                    <input type="text" class="control-text" name="name">
                </div>
            </div>

            <div class="span3 offset2">
                <button  type="button" id="btnSearch" class="button button-primary">搜索</button>
            </div>
        </div>
    </form>

    <div class="search-grid-container">
        <div id="grid"></div>
    </div>
</div>
<script type="text/javascript" src="/resources/js/jquery-1.8.1.min.js"></script>
<script type="text/javascript" src="/resources/js/bui-min.js"></script>
<script type="text/javascript" src="/resources/js/config-min.js"></script>
<script type="text/javascript">
    var store,gridCfg;
  BUI.use(['common/search','common/page','bui/grid','bui/overlay','bui/form'],function (Search,Page,Grid,Overlay,Form) {
    var  columns = [
              {title:'会员编号',dataIndex:'memberId',width:150},
              {title:'会员名称',dataIndex:'memberName',width:150},
             {title:'申请金额',dataIndex:'amount',width:80},
              {title:'当前状态',dataIndex:'status',width:80,renderer:function(value,obj){
                  if(obj.status=='0'){
                      return "待审核";
                  }else if(obj.status=='1'){
                      return "审核通过";
                  }else if(obj.status=='2'){
                      return "审核拒绝";
                  }
              }},
                {title:'申请时间',dataIndex:'timeStr',width:150},
              {title:'操作',dataIndex:'',width:200,renderer : function(value,obj){
                var viewStr =  Search.createLink({ //链接使用 此方式
                          id : 'view' + obj.id,
                          title : '详情',
                          text : '详情',
                          href : '/tx/detail?id='+obj.id
                        });


                return viewStr;
              }}
            ];
            store = Search.createStore('/tx/listData');
            gridCfg = Search.createGridCfg(columns,{
              tbar : {
                items : [

                ]
              },
              plugins : [BUI.Grid.Plugins.CheckSelection] // 插件形式引入多选表格
            });

  });

</script>
<script type="text/javascript" src="/views/js/list.js"></script>
</body>
</html>  
